package com.zxn.japp;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * Created by zxn on 2020/9/25.
 */
public class JApp extends Application {
    private boolean isDebug = true;

    @Override
    public void onCreate() {
        super.onCreate();
        if (isDebug) {
            ARouter.openDebug();
            ARouter.openLog();
        }
        //初始化ARoute
        ARouter.init(this);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        //销毁ARoute
        ARouter.getInstance().destroy();
    }
}
